import React from "react";
import { useNavigate, Outlet } from 'react-router-dom';

const Clist = () => {
  let navigate = useNavigate()
  function handleClick() {
    navigate('test')
  }
  return (
    <button onClick={() => handleClick()}>跳转到三级路由</button>
  )
}
export default class CityList extends React.Component {
    render() {
        return (
            <div style={{color: 'red'}}>
                二级路由页面
              <Clist></Clist>
              <Outlet />
            </div>
            
        )
    }
}